home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Doco ƒ / CSMP ƒ / CSMP-V1-050.TXT < prev    next >
Encoding:
Text File  |  1992-06-03  |  43.9 KB  |  1,157 lines

  1. C.S.M.P. Digest             Thu, 16 Apr 92       Volume 1 : Issue 50
  2.  
  3. Today's Topics:
  4.  
  5.     Launching app from INIT (again)
  6.     DRVR or background: which is better?
  7.     Another MacsBug question...
  8.     Is TextEdit the best solution?
  9.     PBVolumeMount Weirdness!!!
  10.     adding small icon to a cell of a list
  11.     How to force Finder filesize etc. update after THINK C stdio?
  12.     Drawing a Picture in a Modal Dialog?
  13.     List manager problem
  14.     Help! Filling a rect with a uniform color
  15.     iostream package for Think C?
  16.  
  17.  
  18. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  19.  
  20. These digests are available (by using FTP, account anonymous, your email
  21. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  22. edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
  23. Questions list.  The last several issues of the digest are available from
  24. sumex-aim.stanford.edu as well.
  25.  
  26. These digests are also available via email.  Just send a note saying that you
  27. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  28. automatically receive each new digest as it is created.
  29.  
  30. The articles in these digests are taken directly from comp.sys.mac.programmer.
  31. They are not edited; all articles included in this digest are in their original
  32. posted form.  The only articles that are -not- included in these digests are
  33. those which didn't receive any replies (except those that give information
  34. rather than ask a question).  All replies to each article are concatenated
  35. onto the original article in the order in which they were received.  Article
  36. threads are not added to the digests until the last article added to the
  37. thread is at least one month old (this is to ensure that the thread is dead
  38. before adding it to the digests).
  39.  
  40. Send administrative mail to mkelly@cs.uoregon.edu.
  41.  
  42. -------------------------------------------------------
  43.  
  44. From: jverdega@cae.wisc.edu (Jeffrey Verdegan)
  45. Subject: Launching app from INIT (again)
  46. Date: 9 Mar 92 16:43:50 GMT
  47. Organization: Computer Aided Engineering, Univ. of Wisconsin-Madison
  48.  
  49. A while ago, I posted a question asking how to launch an application from an 
  50. INIT.  As I haven't gotten any responses yet, I'll make a pest of myself :-)
  51. and post again.
  52.  
  53. Hence, how do I launch an application from an INIT?  Note, I have no problem
  54. with RTFM, if somebody will give me a clue as to which one.  I've looked in
  55. all the IM volumes' indices under "Launch"  (even VI, and although there was
  56. plenty of info on the process manager, my program has to work under system 6)
  57. IM-II had one or two paragraphs on _Launch, but it didn't seem particularly
  58. useful.
  59.  
  60. Help?  Please?
  61.  
  62. - ----------
  63.  
  64. Jeff Verdegan
  65. University of Wisconsin-Madison
  66. Computer-Aided Engineering Center
  67. jjv@caestaff.engr.wisc.edu
  68. (608) 263-1875
  69.  
  70. +++++++++++++++++++++++++++
  71.  
  72. From: ABSURD@applelink.apple.com (Tim Dierks, ToyMeister, Cray abuser)
  73. Date: 13 Mar 92 19:32:52 GMT
  74. Organization: MacDTS, Apple Computer
  75.  
  76. In article <1992Mar9.104350.851@doug.cae.wisc.edu>, jverdega@cae.wisc.edu (Jeffrey Verdegan) writes:
  77. > Hence, how do I launch an application from an INIT?
  78.  
  79. What do you really want to do?  Launching an application from an INIT is a
  80. pretty bad idea; the system software is not finished setting itself up, the
  81. process manager hasn't started up yet, etc, etc.  You need to ask the real
  82. question: How do I do x?  Now what do you want to do?
  83.  
  84. Do you want an application to always start up when the machine is booted?
  85. Do you want to replace the Finder?
  86. Do you want to do a task before the Finder starts, and you want to do it from
  87.  an application?
  88.  
  89. All these problems would have different solutions.  You need to ask the right
  90. question in order to get a reasonable answer.
  91.  
  92. Most of the time, when people post questions to csmp and don't get an answer,
  93. it's because they haven't phrased their question in a way to make it anything
  94. but an annoyance to answer.
  95.  
  96. Tim Dierks
  97. MacDTS, but I speak for myself
  98.  
  99. +++++++++++++++++++++++++++
  100.  
  101. From: jverdega@cae.wisc.edu (Jeffrey Verdegan)
  102. Organization: College of Engineering, Univ. of Wisconsin-Madison
  103. Date: 14 Mar 92 13:40:34 CST
  104.  
  105. In article <21492@goofy.Apple.COM> ABSURD@applelink.apple.com (Tim Dierks, ToyMeister, Cray abuser) writes:
  106. >In article <1992Mar9.104350.851@doug.cae.wisc.edu>, jverdega@cae.wisc.edu (Jeffrey Verdegan) writes:
  107. >> Hence, how do I launch an application from an INIT?
  108. >
  109. >What do you really want to do?  Launching an application from an INIT is a
  110. >pretty bad idea; the system software is not finished setting itself up, the
  111. >process manager hasn't started up yet, etc, etc.  You need to ask the real
  112. >question: How do I do x?  Now what do you want to do?
  113. >
  114. >Do you want an application to always start up when the machine is booted?
  115. >Do you want to replace the Finder?
  116. >Do you want to do a task before the Finder starts, and you want to do it from
  117. > an application?
  118. >
  119. >All these problems would have different solutions.  You need to ask the right
  120. >question in order to get a reasonable answer.
  121. >
  122. >Most of the time, when people post questions to csmp and don't get an answer,
  123. >it's because they haven't phrased their question in a way to make it anything
  124. >but an annoyance to answer.
  125. >
  126. >Tim Dierks
  127. >MacDTS, but I speak for myself
  128.  
  129. Okay, I realize now that I phrased my question badly, but at the time I posted,
  130. I wasn't really aware of the difference between an INIT and a stand alone code
  131. resource, and of the fact that at INIT time, all the stuff needed to launch
  132. an app has not been set up yet.  I guess now that it's been pointed out to me, 
  133. I realize I should have known, if I had really thought about it.  Sorry for 
  134. the lack of clarity.
  135.  
  136. Anyway, here's the scenario:  I have an INIT that patches a trap (PBControl,
  137. to be exact).  I want to perform certain actions whenever someone logs in to
  138. an AppleShare volume (actually, a NetWare volume, but I make the distinction 
  139. inside the patch).  One of the things I want to do, after the patch is finished
  140. with everything else, is to launch an application.  So, as several people
  141. surmised, launching from the INIT is not actually what I want to do.  Launching
  142. from the trap is.  By the way, it's a head patch, not a tail patch, if that
  143. makes a difference.
  144.  
  145. I've already gotten several responses that answer my question of basic
  146. strategy, (Thanks everyone! =:-) ), so I should be able to make something work
  147. with that,  but if there's any canned code out there that will do it, I don't
  148. really feel a need to re-invent the wheel on this one.
  149.  
  150.  
  151. Later,
  152. Jeff
  153.  
  154.  
  155. - ----------
  156.  
  157. Jeff Verdegan
  158. University of Wisconsin-Madison
  159. Computer-Aided Engineering Center
  160. jjv@caestaff.engr.wisc.edu
  161. (608) 263-1875
  162.  
  163.  
  164.  
  165. ---------------------------
  166.  
  167. From: jjohnson@ewsvax.mdcbbs.com
  168. Subject: DRVR or background: which is better?
  169. Date: 10 Mar 92 08:05:04 GMT
  170. Organization: McDnDSpaceSys, Huntington Bch, CA
  171.  
  172. Hi everyone,
  173.  
  174.   I'm building a program to open a TCP connection over a socket on startup (or
  175. close to it) and listen for a response from a host (i.e. an event happens on
  176. the host and a server sitting on the host will send a "bip" over the connection
  177. to the Mac). When the Mac gets the response it will tweak the Notification
  178. Manager. All the Macs are running 6.0.x or 7 and have MacTCP.
  179.  
  180.   Now for the $64 question....Should this be done as a DRVR (installed by an
  181. INIT at startup) or as a background app? I don't think I need to patch anything
  182. as long as I can be assured of getting some of the CPU once in a while (it's not
  183. terribly important I get called the second that chars are available). A
  184. background app would make our user support organization less nervous, just
  185. simply because it "isn't another INIT to worry about". BTW, there will be some
  186. prefs data input from the user (i.e. type of host event to watch for)... just
  187. a string or two which I was thinking on gathering with a cdev (or could I get
  188. it with a window attached to the DRVR/DA...this DRVR could be a DA, right?)
  189.  
  190.   If it's done as a background app, what's different about a background app
  191. besides the OnlyinBackground flag in the SIZE resource (and no window calls)?
  192. Does anyone have an example of a simple background app or point me to where I
  193. can find source to one (C, Pascal, I'm not picky)...
  194.  
  195. Thanks in advance...!
  196.  
  197. - -Jeff Johnson
  198. jjohnson%ewsvax.decnet@mdcgwy.mdc.com
  199.  
  200. +++++++++++++++++++++++++++
  201.  
  202. From: aw0g+@andrew.cmu.edu (Aaron Wohl)
  203. Date: 11 Mar 92 13:16:53 GMT
  204. Organization: Special Projects, Carnegie Mellon, Pittsburgh, PA
  205.  
  206. For an example of dothing this see host akutatak anonymous ftp 
  207. /aw0g/mailcheck.sit.hqx.
  208.  
  209. This is an init/drvr/cdev collection to check unix mail and pop up a
  210. notification manager alert (or blink the apple or play a sound) when
  211. mail comes in.  Think C sources are included.
  212.  
  213. Aaron
  214.  
  215. +++++++++++++++++++++++++++
  216.  
  217. From: zobkiw@world.std.com (Joe Zobkiw)
  218. Organization: The World Public Access UNIX, Brookline, MA
  219. Date: Wed, 11 Mar 1992 19:47:16 GMT
  220.  
  221. Jeff - You might also want to look into writing a "Daemon" which is the
  222. best of both worlds. It's like a background application yet it doesn't
  223. have any interface at all (so, it's like a DRVR)
  224.  
  225. I think it is discussed in IM VI as well as one of the later Dev CDs which
  226. has some example code.
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233. - -- 
  234. <--------------------------------------------------->
  235.  joe zobkiw                     zobkiw@world.std.com
  236.  mac.synthesis.MIDI.development.C.asm.communications
  237. >---------------------------------------------------<
  238.  
  239. +++++++++++++++++++++++++++
  240.  
  241. From: resnick@cogsci.uiuc.edu (Pete Resnick)
  242. Date: 11 Mar 92 21:27:15 GMT
  243. Organization: University of Illinois at Urbana
  244.  
  245. jjohnson@ewsvax writes:
  246.  
  247. [...]
  248.  
  249. >All the Macs are running 6.0.x or 7 and have MacTCP.
  250.  
  251. [...]
  252.  
  253. >Should this be done as a DRVR (installed by an INIT at startup) or as a
  254. >background app?
  255.  
  256. Things to help you decide:
  257.  
  258. Why it should be an application:
  259. - --------------------------------
  260. 1. **Much** easier to code and debug. Source level debugging is much
  261.    nicer with apps.
  262. 2. Doesn't take up a device driver entry in the table.
  263. 3. Communication with it is cake under System 7 using AppleEvents and
  264.    the Process Manager.
  265. 4. Avoid "another INIT to worry about".
  266.  
  267. Why it should be a driver:
  268. - --------------------------
  269. 1. Needs to run under Finder because Multifinder might not be there.
  270. 2. Need to be able to communicate with it easily under System 6.0.x.
  271.    There ain't no Process Manager in System 6.
  272. 3. You need to write an INIT to launch the application under System 6
  273.    anyway, so you might as well just write the driver.
  274. 4. I'm just like Pete and I like mucking around with other people's
  275.    heaps instead of having one of my own.
  276.  
  277. If none of the reasons under "Why it should be a driver" are overwhelming,
  278. write it as an application and make everybody much calmer.
  279.  
  280. pr
  281. - --
  282. Pete Resnick             (...so what is a mojo, and why would one be rising?)
  283. Graduate assistant - Philosophy Department, Gregory Hall, UIUC
  284. System manager - Cognitive Science Group, Beckman Institute, UIUC
  285. Internet: resnick@cogsci.uiuc.edu
  286.  
  287. +++++++++++++++++++++++++++
  288.  
  289. From: sasdtm@stthomas.unx.sas.com (Donald T. Major)
  290. Organization: SAS Institute Inc.
  291. Date: Fri, 13 Mar 1992 18:59:40 GMT
  292.  
  293. In article <1992Mar11.212715.24317@ux1.cso.uiuc.edu>, resnick@cogsci.uiuc.edu (Pete Resnick) writes:
  294. [many true & useful statements deleted]
  295. |> 3. You need to write an INIT to launch the application under System 6
  296. |>    anyway, so you might as well just write the driver.
  297.  
  298. Not true.  System 6 supports the concept of startup applications--you
  299. just set it up via the Startup... menu item under Special.
  300.  
  301.                                              ..
  302.                                             dtm
  303.  
  304. - -- 
  305. Donald Major       SAS Institute Inc.  "Cicely, let's fling something!"
  306. sasdtm@unx.sas.com SAS Campus Drive                 - Northern Exposure
  307. (919) 677-8000     Cary, NC 27513-2414
  308.  
  309. ---------------------------
  310.  
  311. From: speth@cats.ucsc.edu (James Gustave)
  312. Subject: Another MacsBug question...
  313. Date: 11 Mar 92 01:46:01 GMT
  314. Organization: University of California, Santa Cruz
  315.  
  316.  
  317. When you're debugging with MacsBug, how can you find out where in the file
  318. (ie. position in whatever CODE resource) you are looking at??
  319.  
  320. Also, since I'm already posting something anyway...
  321. When I post news I get a message warning me of the extravagant cost of my
  322. actions.  Is this true or is this a joke?  Just wondering...
  323.  
  324.  
  325. - -- 
  326. Jim Speth
  327. speth@cats.ucsc.edu
  328.  
  329. +++++++++++++++++++++++++++
  330.  
  331. From: dorner@pequod.cso.uiuc.edu (Steve Dorner)
  332. Date: 13 Mar 92 15:59:13 GMT
  333. Organization: University of Illinois at Urbana-Champaign
  334.  
  335. speth@cats.ucsc.edu (James Gustave) writes:
  336. >When you're debugging with MacsBug, how can you find out where in the file
  337. >(ie. position in whatever CODE resource) you are looking at??
  338.  
  339. how, sc, and sc7 all print useful information.
  340.  
  341. What they give you is routine name and an offset.  Finding that in your
  342. source can be difficult.  You can use the "il" command to list instructions
  343. until you can figure out just where you are (subroutine calls can be a big
  344. help).  Personally, I print out an UltraSlimFast listing of all my source
  345. from time to time, which makes this very easy.  (UltraSlimFast is a freeware
  346. MPW tool that prints a combined source code & assembly listing.)
  347.  
  348. >When I post news I get a message warning me of the extravagant cost of my
  349. >actions.  Is this true or is this a joke?
  350.  
  351. It's becoming less true as time goes on and fewer sites are paying
  352. large marginal costs for article transmission.
  353. - -- 
  354. Steve Dorner, U of Illinois Computing Services Office
  355. Internet: s-dorner@uiuc.edu  UUCP: uunet!uiucuxc!uiuc.edu!s-dorner
  356.  
  357. ---------------------------
  358.  
  359. From: speth@cats.ucsc.edu (James Gustave)
  360. Subject: Is TextEdit the best solution?
  361. Date: 11 Mar 92 01:48:48 GMT
  362. Organization: University of California, Santa Cruz
  363.  
  364.  
  365. One feature of my latest project is a simple terminal program.
  366. What seems like the most elegant way of displaying the test coming in?
  367. Should I use TextEdit or just use DrawChar?
  368. Thanks.
  369.  
  370.  
  371. - -- 
  372. Jim Speth
  373. speth@cats.ucsc.edu
  374.  
  375. +++++++++++++++++++++++++++
  376.  
  377. From: jmunkki@hila.hut.fi (Juri Munkki)
  378. Date: 11 Mar 92 14:59:57 GMT
  379. Organization: Helsinki University of Technology, Finland
  380.  
  381. In article <30382@darkstar.ucsc.edu> speth@cats.ucsc.edu (James Gustave) writes:
  382. >One feature of my latest project is a simple terminal program.
  383. >What seems like the most elegant way of displaying the test coming in?
  384. >Should I use TextEdit or just use DrawChar?
  385.  
  386. Both are wrong. Using TextEdit is totally unacceptable and DrawChar
  387. requires more work than is necessary is also slower than optimal.
  388.  
  389. The easiest solution is to use the communications toolbox, since it
  390. provides terminal emulation features. You only have to learn how to
  391. use it and that's it. I think the latest Develop had an article on
  392. how to use the terminal stuff.
  393.  
  394. If you still need to write your own terminal emulation code, use
  395. DrawText or DrawString instead. Try to draw as many characters
  396. as possible with one call to DrawText. Buffer all incoming characters
  397. into an internal buffer and draw the buffered characters only when
  398. the cursor moves or you are about to process events. This will
  399. provide extremely smooth and fast text output.
  400.  
  401.    ____________________________________________________________________________
  402.   / Juri Munkki        /  Helsinki University of Technology   /  Wind  / Project /
  403.  / jmunkki@hut.fi  /  Computing Center Macintosh Support  /  Surf  / Arashi  /
  404.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405.  
  406. +++++++++++++++++++++++++++
  407.  
  408. From: time@ice.com (Tim Endres)
  409. Date: 14 Mar 92 02:55:54 GMT
  410. Organization: ICE Engineering, Inc.
  411.  
  412.  
  413. In article <1992Mar11.145957.28947@nntp.hut.fi> (comp.sys.mac.programmer), jmunkki@hila.hut.fi (Juri Munkki) writes:
  414. > The easiest solution is to use the communications toolbox, since it
  415. > provides terminal emulation features. You only have to learn how to
  416. > use it and that's it. I think the latest Develop had an article on
  417. > how to use the terminal stuff.
  418.  
  419. AGREED! CTB all the way.
  420.  
  421.  
  422. tim endres - time@ice.com  -or-  uupsi!tbomb!time
  423. ICE Engineering, Inc. - Phone (313) 449 8288 - FAX (313) 449-9208
  424. 8840 Main Street, Whitmore Lake, MI  48189
  425. USENET - a slow moving self parody... ph
  426.  
  427. ---------------------------
  428.  
  429. From: jamesbo@microsoft.com (James Borquist)
  430. Subject: PBVolumeMount Weirdness!!!
  431. Date: 11 Mar 92 18:42:52 GMT
  432. Organization: Microsoft Corp.
  433.  
  434. Hi there!
  435.   I was just playing around with this new (well, not so new now, but new to 
  436. me) File Manager call PBVolumeMount.  I have found that on AppleShare servers 
  437. that allow guests to connect, but have volumes that require passwords (at 
  438. least in the Chooser!) I can mount the volume.  Of course, the volume 
  439. disappears after about 1/2 of a second, but the weird thing is that it does 
  440. mount.  Now, my questions are:
  441.  
  442. 1.  Why do I not get an error from PBVolumeMount when I mount a volume like 
  443.     this?
  444.  
  445. 2.  If the answer is that this is an access privilege related thing, then 
  446.     is there any way to find out when I'm trying to mount a volume like 
  447.     this?
  448.  
  449. Thanks!
  450. James
  451.  
  452. +++++++++++++++++++++++++++
  453.  
  454. From: tjc@pacvax.pacersoft.com (Tom Colley)
  455. Date: 12 Mar 92 13:46:14 GMT
  456. Organization: Pacer Software, Inc.
  457.  
  458. In article <1992Mar11.184252.10634@microsoft.com>, jamesbo@microsoft.com (James Borquist) writes:
  459. > Hi there!
  460. >   I was just playing around with this new (well, not so new now, but new to 
  461. > me) File Manager call PBVolumeMount.  I have found that on AppleShare servers 
  462. > that allow guests to connect, but have volumes that require passwords (at 
  463. > least in the Chooser!) I can mount the volume.  Of course, the volume 
  464. > Thanks!
  465. > James
  466.  
  467. I have noticed this also, and quite a while ago had sent a bug report to
  468. Apple concerning PBVolumeMount and password protected volumes.  Aliases to
  469. password protected volumes do not work either.  I never received a 
  470. satisfactory response about the situation.
  471.  
  472. What I saw:  Even though all of the information for the server, volume, user, 
  473. and volume password is correct (and put together correctly in the
  474. AFPVolMountInfo struct, the password does not make it to the AFPOpenVol
  475. packet that gets out on the network, hence the call will fail at the
  476. server with an AccessDenied (that is what the server should do) (the
  477. volume password is sent to the server in the AFPOpenVol call).
  478.  
  479. With password protected volumes on Pacer's PacerShare UNIX fileservers, the 
  480. AFPVolMountInfo does return an AccessDenied (-5000).  I'm willing to bet
  481. some sum of money ($0.02) that the fileserver you are using is blowing the
  482. error code on the AFPOpenVol call, and that after a subsequent 
  483. AFPGetDirParms to get access rights to the base of the volume, the Mac
  484. realizes it has a volume that it has no privs to, and unmounts it.
  485.  
  486. Tom Colley
  487. <tjc@pacersoft.com>  <tjc%pacvax@uunet.uu.net>
  488. /* Watch my return address, it may be wrong */
  489.  
  490. (In case anyone is wondering, PacerShare is an AppleShare file server that
  491. runs on UNIX and VMS.  Call 508 898 3300 for more info.)
  492.  
  493. +++++++++++++++++++++++++++
  494.  
  495. From: dcastell@csg.uwaterloo.ca (David Castell)
  496. Date: 12 Mar 92 17:39:13 GMT
  497. Organization: Computer Systems Group
  498.  
  499. In article <562@pacvax.UUCP>, tjc@pacvax.pacersoft.com (Tom Colley) writes:
  500. > In article <1992Mar11.184252.10634@microsoft.com>, jamesbo@microsoft.com (James Borquist) writes:
  501. > > 
  502. > > Hi there!
  503. > >   I was just playing around with this new (well, not so new now, but new to 
  504. > > me) File Manager call PBVolumeMount.  I have found that on AppleShare servers 
  505. > > that allow guests to connect, but have volumes that require passwords (at 
  506. > > least in the Chooser!) I can mount the volume.  Of course, the volume 
  507. > > 
  508. > > Thanks!
  509. > > James
  510. > > 
  511. > I have noticed this also, and quite a while ago had sent a bug report to
  512. > Apple concerning PBVolumeMount and password protected volumes.  Aliases to
  513. > password protected volumes do not work either.  I never received a 
  514. > satisfactory response about the situation.
  515. > What I saw:  Even though all of the information for the server, volume, user, 
  516. > and volume password is correct (and put together correctly in the
  517. > AFPVolMountInfo struct, the password does not make it to the AFPOpenVol
  518. > packet that gets out on the network, hence the call will fail at the
  519. > server with an AccessDenied (that is what the server should do) (the
  520. > volume password is sent to the server in the AFPOpenVol call).
  521. > With password protected volumes on Pacer's PacerShare UNIX fileservers, the 
  522. > AFPVolMountInfo does return an AccessDenied (-5000).  I'm willing to bet
  523. > some sum of money ($0.02) that the fileserver you are using is blowing the
  524. > error code on the AFPOpenVol call, and that after a subsequent 
  525. > AFPGetDirParms to get access rights to the base of the volume, the Mac
  526. > realizes it has a volume that it has no privs to, and unmounts it.
  527. > Tom Colley
  528. > <tjc@pacersoft.com>  <tjc%pacvax@uunet.uu.net>
  529. > /* Watch my return address, it may be wrong */
  530. > (In case anyone is wondering, PacerShare is an AppleShare file server that
  531. > runs on UNIX and VMS.  Call 508 898 3300 for more info.)
  532. I also found this bug in System 7 and traced through the operating system
  533. to see what the problem was.  Apparently, the PBVolumeMount routine never
  534. uses the Volume Password that is passed to it.  It completely ignores it!
  535. The response I got was that it was definitely a bug and that AppleShare 3.0
  536. drivers has its own version of PBVolumeMount which will provide a working
  537. call to System 6 and System 7 user's alike.  They didn't say when this would
  538. be fixed in System 7.
  539.  
  540. Hope this is of some help.
  541.  
  542. Dave Castell
  543.  
  544. +++++++++++++++++++++++++++
  545.  
  546. From: cmcclary@indiana.edu (Charles McClary)
  547. Organization: Indiana University
  548. Date: Thu, 12 Mar 92 21:06:44 GMT
  549.  
  550. In article <1992Mar12.173913.12224@watserv1.waterloo.edu>, dcastell@csg.uwaterloo.ca (David Castell) writes:
  551. > In article <562@pacvax.UUCP>, tjc@pacvax.pacersoft.com (Tom Colley) writes:
  552. > > 
  553. > > In article <1992Mar11.184252.10634@microsoft.com>, jamesbo@microsoft.com (James Borquist) writes:
  554. > > > 
  555. > > > Hi there!
  556. > > >   I was just playing around with this new (well, not so new now, but new to 
  557. > > > me) File Manager call PBVolumeMount.  I have found that on AppleShare servers 
  558. > > > that allow guests to connect, but have volumes that require passwords (at 
  559. > > > least in the Chooser!) I can mount the volume.  Of course, the volume 
  560. > > > 
  561. > > > Thanks!
  562. > > > James
  563. > > > 
  564. > > 
  565. > > I have noticed this also, and quite a while ago had sent a bug report to
  566. > > Apple concerning PBVolumeMount and password protected volumes.  Aliases to
  567. > > password protected volumes do not work either.  I never received a 
  568. > > satisfactory response about the situation.
  569. > > 
  570. > > What I saw:  Even though all of the information for the server, volume, user, 
  571. > > and volume password is correct (and put together correctly in the
  572. > > AFPVolMountInfo struct, the password does not make it to the AFPOpenVol
  573. > > packet that gets out on the network, hence the call will fail at the
  574. > > server with an AccessDenied (that is what the server should do) (the
  575. > > volume password is sent to the server in the AFPOpenVol call).
  576. > > 
  577. > > With password protected volumes on Pacer's PacerShare UNIX fileservers, the 
  578. > > AFPVolMountInfo does return an AccessDenied (-5000).  I'm willing to bet
  579. > > some sum of money ($0.02) that the fileserver you are using is blowing the
  580. > > error code on the AFPOpenVol call, and that after a subsequent 
  581. > > AFPGetDirParms to get access rights to the base of the volume, the Mac
  582. > > realizes it has a volume that it has no privs to, and unmounts it.
  583. > > 
  584. > > Tom Colley
  585. > > <tjc@pacersoft.com>  <tjc%pacvax@uunet.uu.net>
  586. > > /* Watch my return address, it may be wrong */
  587. > > 
  588. > > (In case anyone is wondering, PacerShare is an AppleShare file server that
  589. > > runs on UNIX and VMS.  Call 508 898 3300 for more info.)
  590. > > 
  591. > > 
  592. > I also found this bug in System 7 and traced through the operating system
  593. > to see what the problem was.  Apparently, the PBVolumeMount routine never
  594. > uses the Volume Password that is passed to it.  It completely ignores it!
  595. > The response I got was that it was definitely a bug and that AppleShare 3.0
  596. > drivers has its own version of PBVolumeMount which will provide a working
  597. > call to System 6 and System 7 user's alike.  They didn't say when this would
  598. > be fixed in System 7.
  599. > Hope this is of some help.
  600. > Dave Castell
  601. I was trying to use PBVolumeMount to an AppleShare volume as a guest and it
  602. bounced with a -58 (which states: volume in question belongs to an external
  603. file system).  I assume, from the previous discussions, that I have fallen
  604. into the same bug.
  605.  
  606. Is there another, reliable, way to mount an AppleShare volume?
  607.  
  608. Thanks,
  609. Charles McClary
  610. cmcclary@indiana.edu
  611.  
  612.  
  613.  
  614. +++++++++++++++++++++++++++
  615.  
  616. From: tjc@pacvax.pacersoft.com (Tom Colley)
  617. Date: 13 Mar 92 14:40:56 GMT
  618. Organization: Pacer Software, Inc.
  619.  
  620. In article <1992Mar12.210644.26258@bronze.ucs.indiana.edu>, cmcclary@indiana.edu (Charles McClary) writes:
  621. > In article <1992Mar12.173913.12224@watserv1.waterloo.edu>, dcastell@csg.uwaterloo.ca (David Castell) writes: 
  622. > > In article <562@pacvax.UUCP>, tjc@pacvax.pacersoft.com (Tom Colley) writes:
  623. > > > In article <1992Mar11.184252.10634@microsoft.com>, jamesbo@microsoft.com (James Borquist) writes:
  624. > > > > Hi there!
  625. > > > >   I was just playing around with this new (well, not so new now, but new to 
  626. > > > > me) File Manager call PBVolumeMount.  I have found that on AppleShare servers 
  627. > > > > that allow guests to connect, but have volumes that require passwords (at 
  628. > > > > least in the Chooser!) I can mount the volume.  Of course, the volume 
  629.  
  630.   [...lots of stuff deleted...]
  631.  
  632. > I was trying to use PBVolumeMount to an AppleShare volume as a guest and it
  633. > bounced with a -58 (which states: volume in question belongs to an external
  634. > file system).  I assume, from the previous discussions, that I have fallen
  635. > into the same bug.
  636. > Is there another, reliable, way to mount an AppleShare volume?
  637. > Thanks,
  638. > Charles McClary
  639. > cmcclary@indiana.edu
  640.  
  641. I had problems with logging in as guest also (but eventually had success!).
  642. The trick was to make sure that the userNameOffset field points to a valid 
  643. place in the AFPVolMountInfo structure, and that it points to an empty string.
  644. Use the guest UAM as if you were supplying a username and password, but
  645. make sure the username and password are empty (for Pascal strings, make sure
  646. the length byte is zero).  If the username field was not empty, I would 
  647. get a -5019, which is an AFP ParamErr.  I've never seen a -58.  Of course,
  648. logging in as guest only works for non-password protected volumes, as
  649. discussed in previous postings.
  650.  
  651. Tom Colley
  652. <tjc@pacersoft.com>  <tjc%pacvax@uunet.uu.net>
  653. /* Watch my return address, it may be wrong */
  654.  
  655. ---------------------------
  656.  
  657. From: wkfu@netcom.com (Wilson Fu)
  658. Subject: adding small icon to a cell of a list
  659. Date: 12 Mar 92 07:42:45 GMT
  660. Organization: Netcom, Bay Area, CA
  661.  
  662. Wondering is there any easy way to do the above? The list manager does not
  663. seem to support adding a samll icon to its cell. Any help would be greatly
  664. appreciated.
  665.  
  666. Regards,
  667. Wilson.
  668. - -- 
  669. Wilson Fu (Nocturnal Bug)       e-mail: wkfu@netcom.com
  670.  
  671. +++++++++++++++++++++++++++
  672.  
  673. From: jpurlia@qualcomm.com (John Purlia)
  674. Organization: Qualcomm, Inc
  675. Date: Thu, 12 Mar 1992 23:58:52 GMT
  676.  
  677. In article <hz3h35kwkfu@netcom.com> wkfu@netcom.com (Wilson Fu) writes:
  678. > Wondering is there any easy way to do the above? The list manager does 
  679. not
  680. > seem to support adding a samll icon to its cell. Any help would be 
  681. greatly
  682. > appreciated.
  683.  
  684. That's correct, the list manager's standard LDEF is a text only list.  In 
  685. order to display small icons in a cell, you need a custom LDEF which draws 
  686. icons in the cells.  Luckily, an LDEF is one of the simpler defProcs to 
  687. write (as it basically just needs a draw routine), and luckier still, 
  688. there is an excellent small icon LDEF example included in Apple's DTS 
  689. Sample Code folder.
  690.  
  691. - -- John
  692.  
  693. ...........................................................................
  694. John Purlia          : My brain; not my company's brain.  My brain says...
  695. jpurlia@qualcomm.com :      "Just about any movie could be made better
  696. AOL:  <Jpurlia>      :       if one of the characters were a vampire."
  697. ...........................................................................
  698.  
  699. ---------------------------
  700.  
  701. From: swofford@uxh.cso.uiuc.edu (David Swofford )
  702. Subject: How to force Finder filesize etc. update after THINK C stdio?
  703. Date: 12 Mar 92 18:00:32 GMT
  704. Organization: University of Illinois at Urbana
  705.  
  706. If a Finder window is open and the size of a file is changed using THINK 
  707. C 5.0 stdio after the Finder first sees the file, it doesn't seem to 
  708. update the file size and other Finder info properly.  The simplest 
  709. example of this is:
  710.  
  711.    Open a Finder window containing file 'foo.txt' in list mode (i.e., by
  712.        name, size, etc.).
  713.    Do the following:
  714.        
  715.          fp = fopen("foo.text", "a");
  716.          [write a bunch of stuff to fp]
  717.          fclose(fp); 
  718.          [exit program]
  719.  
  720. The file size displayed in the Finder doesn't change no matter how many 
  721. bytes (or kilobytes, or megabytes) you write to it.  If you close the 
  722. window and reopen, it displays the correct size.  Obvious things like 
  723. calling SetFInfo etc. don't help.
  724.  
  725. In pre-System 7 versions of the OS, I found by trial-and-error that I 
  726. could force the Finder to update the file size and other info by 
  727. creating a new temporary file and immediately deleting it.  Somehow, 
  728. messing with the directory entries caused the Finder to recollect its 
  729. information about the files.  Even this doesn't seem to work under 
  730. System 7.  Under System 6 and earlier, this bug/feature was particular 
  731. annoying because copies mediated by the Finder (including duplicate, 
  732. etc.) used the Finder's incorrect notion of the file size correct and 
  733. did bizarre things such as spilling the progress bar outside of the
  734. thermometer display, rapid multiple flashing back and forth between 
  735. reading and writing, etc.
  736.  
  737. I imagine that this has come up before in this group, but I don't 
  738. remember anything about it and there was no mention in the FAQ list.  
  739. Any suggestions on how I can FORCE the Finder to update its info from 
  740. within my app would be appreciated.
  741. - --
  742. David L. Swofford                 Phone:    (217)244-6959
  743. Illinois Natural History Survey   FAX:      (217)333-4949
  744. 607 E. Peabody Drive              BITNET:   DAVESWOF@UIUCVMD
  745. Champaign, Illinois 61820 USA     Internet: swofford@uxh.cso.uiuc.edu
  746.  
  747. +++++++++++++++++++++++++++
  748.  
  749. From: d88-jwa@byse.nada.kth.se (Jon W{tte)
  750. Date: 13 Mar 92 17:09:13 GMT
  751. Organization: Royal Institute of Technology, Stockholm, Sweden
  752.  
  753. .cso.uiuc.edu> swofford@uxh.cso.uiuc.edu (David Swofford ) writes:
  754.  
  755.    The file size displayed in the Finder doesn't change no matter how many 
  756.    bytes (or kilobytes, or megabytes) you write to it.  If you close the 
  757.    window and reopen, it displays the correct size.  Obvious things like 
  758.    calling SetFInfo etc. don't help.
  759.  
  760. The apple-sanctioned way is to change the modified date
  761. of the enclosing folder.
  762.  
  763. >From the limitless depths of my hairy, ever-growing utilities.c
  764. file:
  765.  
  766. OSErr
  767. TouchDir ( short vol , long dir )
  768. {
  769.     CInfoPBRec info ;
  770.     Name name ;
  771.      OSErr err ;
  772.  
  773.     BlockClear ( & info , sizeof ( info ) ) ;
  774.     info . dirInfo . ioDrDirID = dir ;
  775.     info . dirInfo . ioVRefNum = vol ;
  776.     info . dirInfo . ioNamePtr = name ;
  777.     info . dirInfo . ioFDirIndex = -1 ;
  778.  
  779.     err = PBGetCatInfo ( & info , 0 ) ;
  780.  
  781.     if ( ! err ) {
  782.  
  783.         info . dirInfo . ioCompletion = 0 ;
  784.         info . dirInfo . ioDrDirID = info . dirInfo . ioDrParID ;
  785.         info . dirInfo . ioFDirIndex = 0 ;
  786.         GetDateTime ( & ( info . dirInfo . ioDrMdDat ) ) ;
  787.  
  788.         err = PBSetCatInfo ( & info , 0 ) ;
  789.     }
  790.  
  791.     return err ;
  792. }
  793.  
  794.  
  795. The implementation is left as an exercise to the reader.
  796.  
  797. - -- 
  798. This signature is placed into the Public Domain by Jon W{tte (h+@nada.kth.se)
  799.                      - The worlds only romantic cynic -
  800.  
  801. +++++++++++++++++++++++++++
  802.  
  803. From: David.Swofford@macnet.omahug.org (David Swofford)
  804. Date: 13 Mar 92 00:00:32 GMT
  805. Organization: Macnet Omaha
  806.  
  807. (From: swofford@uxh.cso.uiuc.edu (David Swofford ))
  808. (Organization: University of Illinois at Urbana)
  809.  
  810. If a Finder window is open and the size of a file is changed using THINK 
  811. C 5.0 stdio after the Finder first sees the file, it doesn't seem to 
  812. update the file size and other Finder info properly.  The simplest 
  813. example of this is:
  814.  
  815.    Open a Finder window containing file 'foo.txt' in list mode (i.e., by
  816.        name, size, etc.).
  817.    Do the following:
  818.        
  819.          fp = fopen("foo.text", "a");
  820.          [write a bunch of stuff to fp]
  821.          fclose(fp); 
  822.          [exit program]
  823.  
  824. The file size displayed in the Finder doesn't change no matter how many 
  825. bytes (or kilobytes, or megabytes) you write to it.  If you close the 
  826. window and reopen, it displays the correct size.  Obvious things like 
  827. calling SetFInfo etc. don't help.
  828.  
  829. In pre-System 7 versions of the OS, I found by trial-and-error that I 
  830. could force the Finder to update the file size and other info by 
  831. creating a new temporary file and immediately deleting it.  Somehow, 
  832. messing with the directory entries caused the Finder to recollect its 
  833. information about the files.  Even this doesn't seem to work under 
  834. System 7.  Under System 6 and earlier, this bug/feature was particular 
  835. annoying because copies mediated by the Finder (including duplicate, 
  836. etc.) used the Finder's incorrect notion of the file size correct and 
  837. did bizarre things such as spilling the progress bar outside of the
  838. thermometer display, rapid multiple flashing back and forth between 
  839. reading and writing, etc.
  840.  
  841. I imagine that this has come up before in this group, but I don't 
  842. remember anything about it and there was no mention in the FAQ list.  
  843. Any suggestions on how I can FORCE the Finder to update its info from 
  844. within my app would be appreciated.
  845. - --
  846. David L. Swofford                 Phone:    (217)244-6959
  847. Illinois Natural History Survey   FAX:      (217)333-4949
  848. 607 E. Peabody Drive              BITNET:   DAVESWOF@UIUCVMD
  849. Champaign, Illinois 61820 USA     Internet: swofford@uxh.cso.uiuc.edu
  850.  
  851. - ---
  852.  * Origin: Interuniverse Gateway (ivgate), Omaha (11:30102/2.0)
  853. SEEN-BY: 285/1 285/14
  854.  
  855. ---------------------------
  856.  
  857. From: danny@utkux1.utk.edu (Danny W. McCampbell)
  858. Subject: Drawing a Picture in a Modal Dialog?
  859. Date: 12 Mar 92 18:34:47 GMT
  860. Organization: University of Tennessee
  861.  
  862. I have a simple program where I want to draw a picture in a modal
  863. dialog with out having to call DrawDialog.  I notice that when I
  864. call DrawDialog I get a flicker in the Static Text when the dialog
  865. is redraw.  So I thought I would just draw the picture into the dialog,
  866. but I am unsure about how to do this since I am new to programming
  867. the mac.  Could someone please help me out?
  868.  
  869. Danny McCampbell
  870. danny@utkux1.utk.edu
  871.  
  872. +++++++++++++++++++++++++++
  873.  
  874. From: danny@utkux1.utk.edu (Danny W. McCampbell)
  875. Date: 13 Mar 92 13:51:02 GMT
  876. Organization: University of Tennessee
  877.  
  878. In article <1992Mar12.183447.22633@utkux1.utk.edu>, danny@utkux1.utk.edu (Danny W. McCampbell) writes:
  879. > I have a simple program where I want to draw a picture in a modal
  880. > dialog with out having to call DrawDialog.  I notice that when I
  881. > call DrawDialog I get a flicker in the Static Text when the dialog
  882. > is redraw.  So I thought I would just draw the picture into the dialog,
  883. > but I am unsure about how to do this since I am new to programming
  884. > the mac.  Could someone please help me out?
  885. > Danny McCampbell
  886. > danny@utkux1.utk.edu
  887. Never mind, I figured it out.  Thanks anyway.
  888.  
  889. Danny
  890.  
  891. ---------------------------
  892.  
  893. From: chrisa@hpfcso.FC.HP.COM (Chris Anderson)
  894. Subject: List manager problem
  895. Date: 11 Mar 92 22:59:07 GMT
  896. Organization: Hewlett-Packard, Fort Collins, CO, USA
  897.  
  898. Mac programmers:
  899.  
  900. I know  questions  about the list manager  have been posted here  before, but I
  901. didn't read them because I didn't use the list manager.  I am now trying to use
  902. the list manager, I am having  problems, so NOW I AM INTERESTED.  Please, would
  903. someone who knows, send me the answer to this possibly simple problem.
  904.  
  905. Set up:  Mac SE (8 MHz 68000)  running  under System  6.0.7; I am using Think C
  906. version 4.0.
  907.  
  908. Here is the problem:
  909.  
  910. I have a Dialog  Window that has a list in it (I use  LNew(...)  to  initialize
  911. it).  The destination rect and the scroll bar control  (vertical only) rect are
  912. defined in the Dialog Resource as User Items.  I use  Dialog_Select to look for
  913. mouseDown  events in those items and pass the  mouseDown  pt (in local  coords)
  914. along to LClick.  The first  problem is that the scroll bar does not respond at
  915. all (IM-IV implies that all of the scroll bar stuff is handled by LClick).
  916.  
  917. The second problem is really weird.  As long as the mouse button is down in the
  918. destination rect, LClick seems to work ok, as I see it highlight the list cells
  919. as the mouse passes over each one, and even scroll automatically when the mouse
  920. is moved outside the  destination  rect (the scroll bar's thumb even moves with
  921. the  scrolling).  Yet when I release the mouse  button and call  LLastClick  to
  922. find out which list cell was last  clicked  in, it returns a cell number 2 OR 3
  923. greater  than the top cell.  LClick also does not seem to respond to  mouseDown
  924. events in the last 2 OR 3 cells -- it does not highlight them.
  925.  
  926. The last problem may be related to the  previous  one.  I cannot get Think C (v
  927. 4.0) to correctly  assign a structured  function  result  (like Point or Cell).
  928. for example:
  929.         Cell        theCell;
  930.         .
  931.         .
  932.         .
  933.         theCell = LLastClick(...);   /* compiler doesn't like this */
  934.  
  935. What I have been able to do is coerce the function result to type long and then
  936. assign each element of the  structure  (the .h and the .v) from the  high-order
  937. word and  low-order  word of the long  result.  
  938. for example:
  939.         Cell        theCell;
  940.         long        l;
  941.         .
  942.         .
  943.         .
  944.         l = (long)LLastClick(...);
  945.         theCell.v = (int)(l >> 16);
  946.         theCell.h = (int)(l & 0xffff); /* compiler accepts this */
  947.  
  948. This  seems like a kludge to me.  Is there a better way (say, use a UNION)?  Is
  949. this part of the  problem of the cell  numbers  being 2 OR 3 greater  than they
  950. should?  I don't know.
  951.  
  952. Please respond by e-mail to chrisa@hpfcswq.fc.hp.com since my connection to the
  953. Internet  is down for an  undetermined  period  of time, and I won't be able to
  954. read this news group.
  955.  
  956. Chris Anderson (chrisa@hpfcswq.fc.hp.com)
  957.  
  958. +++++++++++++++++++++++++++
  959.  
  960. From: jack@umbio.med.miami.edu (Jack Herrington)
  961. Organization: University of Miami Medical School
  962. Date: Fri, 13 Mar 1992 00:29:54 GMT
  963.  
  964. chrisa@hpfcso.FC.HP.COM (Chris Anderson) writes:
  965. >              Yet when I release the mouse  button and call  LLastClick  to
  966. >find out which list cell was last  clicked  in, it returns a cell number 2 OR 3
  967. >greater  than the top cell.  LClick also does not seem to respond to  mouseDown
  968. >events in the last 2 OR 3 cells -- it does not highlight them.
  969.  
  970. 1) Make sure your data rect has 0,0 as the left and top, and your data limits
  971.    as bottom and right.
  972. 2) What you really want to know from LLastClick is what is selected, I guess?
  973.    If it is, try this:
  974.  
  975.     Point selCell;
  976.     selCell.h = selCell.v = 0;
  977.     if ( LGetSelect(true,&selCell,theList) )
  978.     {
  979.         ...
  980.         now you have the cell address
  981.         ...
  982.     }
  983.  
  984.    I know it makes sense to use LLastClick, but then you have to use LoWord
  985.    and HiWord, and cast the result into a long, it's a drag.  This way you make
  986.    sure what you got is selected, too.
  987. - -- 
  988. "Electric word 'life', it means forever and that's a might long time.  But I'm
  989.  here to tell yah, there's something else... The after-life, a word of
  990.  never-ending happiness, you can always see the sun, day or night.  So when you
  991.  call up that shrink in Beverly hills, you know the one, Dr. everything-we-all-
  992.  
  993. +++++++++++++++++++++++++++
  994.  
  995. From: chrisa@hpfcso.FC.HP.COM (Chris Anderson)
  996. Date: 13 Mar 92 16:21:15 GMT
  997. Organization: Hewlett-Packard, Fort Collins, CO, USA
  998.  
  999. Mac programmers:
  1000.  
  1001. Thank you for all of your responses.  All of the problems with the List manager
  1002. I have had are now solved.
  1003.  
  1004. Chris Anderson (chrisa@hpfcso.fc.hp.com)
  1005.  
  1006. ---------------------------
  1007.  
  1008. From: putzolu@toadflax.cs.ucdavis.edu (David Putzolu)
  1009. Subject: Help! Filling a rect with a uniform color
  1010. Date: 13 Mar 92 03:38:11 GMT
  1011. Organization: Department of Computer Science, University of California, Davis
  1012.  
  1013. Help! I am trying to do a very simple thing: Fill a rect that is in an
  1014. open window with the color stored in a variable of type RGBColor. But
  1015. the obvious procedure, FillCRect, requires a PixPatHandle, which,
  1016. looking at it in my IM books, I can't figure out for the life of me.
  1017. Can anyone tell me how to do this very simple thing? Thanks in
  1018. advance for any help....
  1019.  
  1020. Also, let me express my gratitute to Matt Hall, Warren DeLano, and
  1021. Bill Leue, whose suggestions were extremely helpful in dealing with
  1022. arrays that wouldn't fit in the 32k program segment limit. Thanks
  1023. again!
  1024.  
  1025. | David M. A. Putzolu                  | putzolu@cs.ucdavis.edu                |
  1026. | Senior Undergraduate                 | op disclaimer(opinion : ptr mine)     |
  1027. | Computer Science and Psychology      |       Aiuto! Sono caduto e            |
  1028. | University of California at Davis    |         non posso alzarmi!            |
  1029.  
  1030. +++++++++++++++++++++++++++
  1031.  
  1032. From: kempkec@fog.CS.ORST.EDU (Christopher Kempke)
  1033. Date: 13 Mar 92 21:10:41 GMT
  1034. Organization: Oregon State University, Computer Science Dept.
  1035.  
  1036. In article <11436@ucdavis.ucdavis.edu> putzolu@toadflax.UUCP (David Putzolu) writes:
  1037. >Help! I am trying to do a very simple thing: Fill a rect that is in an
  1038. >open window with the color stored in a variable of type RGBColor. But
  1039. >the obvious procedure, FillCRect, requires a PixPatHandle, which,
  1040.  
  1041.     RGBForeColor(theColor);
  1042.     PaintRect(theRect);
  1043.  
  1044.     "Fill" uses a pattern, "Paint" uses a color, "Frame" draws an outline.
  1045.  
  1046.     Hope this helps.
  1047.  
  1048.     -Chris
  1049.  
  1050. ---------------------------
  1051.  
  1052. From: kiran@bronze.ucs.indiana.edu (Kiran Wagle)
  1053. Subject: iostream package for Think C?
  1054. Date: 13 Mar 92 08:52:01 GMT
  1055. Organization: Indiana University
  1056.  
  1057. I would like to use Think C 5 to test some routines that depend
  1058. heavily on simple i/o. I'd like to use the iostream routines for this,
  1059. but they're not included with Think C. 
  1060.  
  1061. If they're written in C or C++ (which was suggested in Stroustrup's
  1062. reference) then perhaps they could be compiled to run under think c?
  1063.  
  1064. If anyone knows where to get source code, or has tried using them with
  1065. think c, please send any advice you may have. 
  1066.  
  1067. Thanks in advance.
  1068.     -Kiran
  1069.  
  1070. - -- 
  1071. "The truffle is not an outright aphrodisiac, but it may in certain
  1072.  circumstances make women more affectionate and men more amiable."
  1073.                                                 ...Brillat-Savarin
  1074.  
  1075. +++++++++++++++++++++++++++
  1076.  
  1077. From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher)
  1078. Date: 13 Mar 92 16:22:27 GMT
  1079. Organization: Integrated Systems Laboratory, ETH, Zurich
  1080.  
  1081. In article <1992Mar13.085201.20665@bronze.ucs.indiana.edu> kiran@bronze.ucs.indiana.edu (Kiran Wagle) writes:
  1082. >I would like to use Think C 5 to test some routines that depend
  1083. >heavily on simple i/o. I'd like to use the iostream routines for this,
  1084. >but they're not included with Think C. 
  1085.  
  1086. For good reasons...
  1087.  
  1088. >If they're written in C or C++ (which was suggested in Stroustrup's
  1089. >reference) then perhaps they could be compiled to run under think c?
  1090.  
  1091. Uhm, I don't think so. Doesn't Think C abhor operator overloading and multiple
  1092. inheritance ? iostream is inconceivable without operator overloading and The
  1093. current implementatikon also relies on multiple inheritance.
  1094.  
  1095. >If anyone knows where to get source code, or has tried using them with
  1096. >think c, please send any advice you may have. 
  1097.  
  1098. There is an iostream library coming with g++. If TC could compile it (It can't
  1099. (He He)), you could easily get it, but I'm a little unclear as to whether your
  1100. application would fall under the General Public License, which you might not
  1101. want to happen.
  1102.  
  1103. Matthias
  1104.  
  1105. - -----
  1106. Matthias Neeracher                                   neeri@iis.ethz.ch
  1107.    "No, what he didn't like about heroes was that they were usually
  1108.     suicidally gloomy when sober and homicidally insane when drunk."
  1109.                           -- Terry Pratchett, _The Colour of Magic_
  1110.  
  1111. +++++++++++++++++++++++++++
  1112.  
  1113. From: tdm7695@tamsun.tamu.edu (Thomas Moriarty)
  1114. Date: 15 Mar 92 02:27:12 GMT
  1115. Organization: Texas A&M University
  1116.  
  1117.  
  1118. Kiram,
  1119.  
  1120. It is unfortunate that Think C does not have an iostream class available. 
  1121.  
  1122. As you know, Think C is produced by Symantec. Symantec acquired Zortech
  1123. Ltd. about a year ago. Zortech does have a C++ compiler with iostream
  1124. classes for the Macintosh. It would make good sense for Symantec to merge
  1125. the Zortech C++ Macintosh version together with Think C. If Symantec could
  1126. do this, they could have a new and powerful product that solves the
  1127. deficiencies that you mentioned. 
  1128.  
  1129. - -- Tom Moriarty     
  1130.  
  1131. ---------------------------
  1132.  
  1133. End of C.S.M.P. Digest
  1134. **********************
  1135.